<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no">
    <title>得圣网络安全 - 官方APP下载</title>

    <!-- OpenInstall 集成代码 -->
    <script type="text/javascript" charset="UTF-8" src="https://res.openinstall.com/openinstall-fey37z.js"></script>

    <style>
        * {
            margin: 0;
            padding: 0;
            box-sizing: border-box;
        }

        /* 性能优化 */
        .container,
        .download-btn,
        .feature-icon,
        .app-icon {
            will-change: transform;
        }

        /* 减少重绘 */
        .bg-animation,
        .floating-elements {
            transform: translateZ(0);
            backface-visibility: hidden;
        }

        body {
            font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Hiragino Sans GB", "Microsoft YaHei", sans-serif;
            background: linear-gradient(135deg, #f8fafc 0%, #e2e8f0 30%, #cbd5e1 60%, #94a3b8 100%);
            background-size: 400% 400%;
            animation: gradientShift 12s ease-in-out infinite;
            min-height: 100vh;
            display: flex;
            flex-direction: column;
            align-items: center;
            padding: 20px;
            position: relative;
            overflow-x: hidden;
        }

        @keyframes gradientShift {

            0%,
            100% {
                background-position: 0% 50%;
            }

            50% {
                background-position: 100% 50%;
            }
        }

        /* 简化背景动画 */
        .bg-animation {
            position: fixed;
            width: 100%;
            height: 100%;
            top: 0;
            left: 0;
            z-index: -1;
            opacity: 0.3;
            pointer-events: none;
        }

        .bg-animation::before,
        .bg-animation::after {
            content: '';
            position: absolute;
            border-radius: 50%;
            background: radial-gradient(circle, rgba(59, 130, 246, 0.15) 0%, transparent 70%);
            animation: gentleFloat 15s infinite ease-in-out;
        }

        .bg-animation::before {
            width: 300px;
            height: 300px;
            top: -150px;
            left: -150px;
            animation-delay: 0s;
        }

        .bg-animation::after {
            width: 200px;
            height: 200px;
            bottom: -100px;
            right: -100px;
            animation-delay: 7s;
        }

        @keyframes gentleFloat {

            0%,
            100% {
                transform: translate(0, 0) scale(1);
                opacity: 0.3;
            }

            25% {
                transform: translate(50px, -50px) scale(1.1);
                opacity: 0.2;
            }

            50% {
                transform: translate(-30px, 30px) scale(0.9);
                opacity: 0.4;
            }

            75% {
                transform: translate(30px, 20px) scale(1.05);
                opacity: 0.25;
            }
        }

        /* 主容器 */
        .container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(20px);
            border-radius: 25px;
            padding: 40px 30px;
            max-width: 400px;
            width: 100%;
            box-shadow:
                0 25px 80px rgba(0, 0, 0, 0.1),
                0 0 0 1px rgba(59, 130, 246, 0.2),
                inset 0 1px 0 rgba(255, 255, 255, 0.8);
            animation: slideUp 0.8s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            position: relative;
            overflow: hidden;
            border: 1px solid rgba(59, 130, 246, 0.1);
        }

        .container::before {
            content: '';
            position: absolute;
            top: 0;
            left: 0;
            right: 0;
            height: 1px;
            background: linear-gradient(90deg, transparent, rgba(59, 130, 246, 0.6), transparent);
            animation: shimmer 3s infinite;
        }

        @keyframes slideUp {
            0% {
                opacity: 0;
                transform: translateY(50px) scale(0.95);
                filter: blur(10px);
            }

            60% {
                transform: translateY(-5px) scale(1.02);
            }

            100% {
                opacity: 1;
                transform: translateY(0) scale(1);
                filter: blur(0);
            }
        }

        @keyframes shimmer {
            0% {
                transform: translateX(-100%);
            }

            100% {
                transform: translateX(100%);
            }
        }

        /* Logo区域 */
        .logo-area {
            text-align: center;
            margin-bottom: 30px;
        }

        .app-icon {
            width: 90px;
            height: 90px;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8, #1e40af);
            border-radius: 22px;
            display: inline-flex;
            align-items: center;
            justify-content: center;
            margin-bottom: 20px;
            box-shadow: 0 15px 35px rgba(59, 130, 246, 0.3), 0 5px 15px rgba(0, 0, 0, 0.1);
            transition: transform 0.3s ease, box-shadow 0.3s ease;
            animation: gentleFloat 4s ease-in-out infinite;
            position: relative;
            overflow: hidden;
            border: 2px solid rgba(255, 255, 255, 0.3);
        }

        .app-icon::after {
            content: '';
            position: absolute;
            top: -50%;
            left: -50%;
            width: 200%;
            height: 200%;
            background: linear-gradient(45deg, transparent, rgba(255, 255, 255, 0.3), transparent);
            transform: rotate(45deg) translateX(-100%);
            animation: iconShine 6s infinite;
        }

        .app-icon:hover {
            transform: translateY(-4px) scale(1.05);
            box-shadow: 0 20px 40px rgba(59, 130, 246, 0.4), 0 8px 20px rgba(0, 0, 0, 0.2);
            animation-play-state: paused;
        }

        @keyframes gentleFloat {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-6px);
            }
        }

        @keyframes iconShine {

            0%,
            90% {
                transform: rotate(45deg) translateX(-100%);
            }

            100% {
                transform: rotate(45deg) translateX(100%);
            }
        }

        /* 简化波纹动画 */
        @keyframes ripple {
            to {
                transform: scale(1.5);
                opacity: 0;
            }
        }

        /* 添加加载动画 */
        .loading-overlay {
            position: fixed;
            top: 0;
            left: 0;
            width: 100%;
            height: 100%;
            background: linear-gradient(135deg, #f8fafc, #e2e8f0);
            display: flex;
            align-items: center;
            justify-content: center;
            z-index: 10000;
            animation: fadeOut 1s ease-out 0.5s forwards;
        }

        .loading-spinner {
            width: 50px;
            height: 50px;
            border: 3px solid rgba(59, 130, 246, 0.3);
            border-top: 3px solid #3b82f6;
            border-radius: 50%;
            animation: spin 1s linear infinite;
        }

        @keyframes spin {
            0% {
                transform: rotate(0deg);
            }

            100% {
                transform: rotate(360deg);
            }
        }

        @keyframes fadeOut {
            to {
                opacity: 0;
                visibility: hidden;
            }
        }

        /* 增强悬停效果 */
        .app-name {
            transition: all 0.3s ease;
        }

        .logo-area:hover .app-name {
            transform: scale(1.05);
            color: #3b82f6;
        }

        .app-desc {
            transition: all 0.3s ease;
        }

        .logo-area:hover .app-desc {
            color: #1d4ed8;
        }

        .app-icon svg {
            width: 50px;
            height: 50px;
            fill: white;
        }

        .app-name {
            font-size: 24px;
            font-weight: bold;
            color: #1e293b;
            margin-bottom: 5px;
        }

        .app-desc {
            font-size: 14px;
            color: #475569;
        }

        /* 下载按钮 */
        .download-buttons {
            margin: 30px 0;
        }

        .download-btn {
            width: 100%;
            padding: 18px;
            margin-bottom: 16px;
            border: none;
            border-radius: 16px;
            font-size: 16px;
            font-weight: 600;
            cursor: pointer;
            transition: all 0.3s cubic-bezier(0.25, 0.46, 0.45, 0.94);
            display: flex;
            align-items: center;
            justify-content: center;
            text-decoration: none;
            position: relative;
            will-change: transform;
            overflow: hidden;
        }

        .download-btn::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.2), transparent);
            transition: left 0.5s;
        }

        .download-btn:hover::before {
            left: 100%;
        }

        .download-btn span,
        .download-btn .btn-icon {
            position: relative;
            z-index: 2;
        }

        .ios-btn {
            background: linear-gradient(135deg, #64748b, #94a3b8, #cbd5e1);
            color: #1e293b;
            box-shadow: 0 8px 25px rgba(100, 116, 139, 0.3);
            border: 1px solid rgba(59, 130, 246, 0.2);
        }

        .android-btn {
            background: linear-gradient(135deg, #10b981, #059669, #047857);
            color: white;
            box-shadow: 0 8px 25px rgba(16, 185, 129, 0.3);
            border: 1px solid rgba(255, 255, 255, 0.2);
        }

        .download-btn:hover {
            transform: translateY(-3px) scale(1.02);
            box-shadow: 0 12px 30px rgba(0, 0, 0, 0.2);
        }

        .ios-btn:hover {
            box-shadow: 0 12px 30px rgba(100, 116, 139, 0.4);
        }

        .android-btn:hover {
            box-shadow: 0 12px 30px rgba(16, 185, 129, 0.4);
        }

        .download-btn:active {
            transform: translateY(-1px) scale(0.98);
        }

        .btn-icon {
            width: 24px;
            height: 24px;
            margin-right: 10px;
            fill: currentColor;
        }

        /* 微信提示遮罩 */
        .wechat-mask {
            display: none;
            position: fixed;
            top: 0;
            left: 0;
            right: 0;
            bottom: 0;
            background: rgba(0, 0, 0, 0.9);
            z-index: 9999;
            animation: fadeIn 0.3s ease;
        }

        @keyframes fadeIn {
            from {
                opacity: 0;
            }

            to {
                opacity: 1;
            }
        }

        .wechat-mask.show {
            display: block;
        }

        .mask-content {
            padding: 20px;
            color: white;
            text-align: right;
        }

        .arrow {
            width: 0;
            height: 0;
            border-left: 20px solid transparent;
            border-right: 20px solid transparent;
            border-bottom: 30px solid white;
            position: absolute;
            top: 20px;
            right: 30px;
            animation: bounce 1s infinite;
        }

        @keyframes bounce {

            0%,
            100% {
                transform: translateY(0);
            }

            50% {
                transform: translateY(-10px);
            }
        }

        .mask-text {
            margin-top: 80px;
            font-size: 18px;
            line-height: 1.6;
        }

        /* 功能特性 */
        .features {
            margin-top: 30px;
            padding-top: 20px;
            border-top: 1px solid rgba(59, 130, 246, 0.2);
        }

        .feature-item {
            display: flex;
            align-items: center;
            margin-bottom: 18px;
            opacity: 0;
            transform: translateX(-20px);
            animation: slideInFeature 0.6s ease-out forwards;
            transition: transform 0.2s ease;
        }

        .feature-item:nth-child(1) {
            animation-delay: 0.1s;
        }

        .feature-item:nth-child(2) {
            animation-delay: 0.2s;
        }

        .feature-item:nth-child(3) {
            animation-delay: 0.3s;
        }

        .feature-item:nth-child(4) {
            animation-delay: 0.4s;
        }

        .feature-item:hover {
            transform: translateX(5px);
        }

        @keyframes slideInFeature {
            to {
                opacity: 1;
                transform: translateX(0);
            }
        }

        .feature-icon {
            width: 44px;
            height: 44px;
            background: linear-gradient(135deg, #3b82f6, #1d4ed8);
            border-radius: 12px;
            display: flex;
            align-items: center;
            justify-content: center;
            margin-right: 16px;
            flex-shrink: 0;
            box-shadow: 0 4px 15px rgba(59, 130, 246, 0.2);
            transition: transform 0.2s ease;
            border: 1px solid rgba(255, 255, 255, 0.3);
        }

        .feature-item:hover .feature-icon {
            transform: scale(1.05);
            box-shadow: 0 6px 20px rgba(59, 130, 246, 0.3);
        }

        .feature-icon svg {
            width: 20px;
            height: 20px;
            fill: white;
        }

        .feature-text h3 {
            font-size: 14px;
            color: #1e293b;
            margin-bottom: 2px;
        }

        .feature-text p {
            font-size: 12px;
            color: #64748b;
        }

        /* 底部信息 */
        .footer {
            margin-top: 30px;
            text-align: center;
            font-size: 12px;
            color: #475569;
        }

        /* 响应式设计 */
        @media (max-width: 380px) {
            .container {
                padding: 30px 20px;
            }

            .app-name {
                font-size: 20px;
            }

            .download-btn {
                font-size: 15px;
                padding: 14px;
            }
        }
    </style>
</head>

<body>
    <!-- 加载动画 -->
    <div class="loading-overlay">
        <div class="loading-spinner"></div>
    </div>

    <div class="bg-animation"></div>

    <div class="container">
        <!-- Logo区域 -->
        <div class="logo-area">
            <div class="app-icon">
                <svg viewBox="0 0 24 24">
                    <path
                        d="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M12,7C13.4,7 14.8,8.6 14.8,10V11H16V18H8V11H9.2V10C9.2,8.6 10.6,7 12,7M12,8.2C11.2,8.2 10.4,8.7 10.4,10V11H13.6V10C13.6,8.7 12.8,8.2 12,8.2Z" />
                </svg>
            </div>
            <div class="app-name">得圣APP下载</div>
            <div class="app-desc">专业网络安全防护 · 守护数字生活</div>
        </div>

        <!-- 下载按钮 -->
        <div class="download-buttons">
            <button id="downloadButton" class="download-btn ios-btn">
                <svg class="btn-icon" viewBox="0 0 24 24">
                    <path
                        d="M18.71 19.5c-.83 1.24-1.71 2.45-3.05 2.47-1.34.03-1.77-.79-3.29-.79-1.53 0-2 .77-3.27.82-1.31.05-2.3-1.32-3.14-2.53C4.25 17 2.94 12.45 4.7 9.39c.87-1.52 2.43-2.48 4.12-2.51 1.28-.02 2.5.87 3.29.87.78 0 2.26-1.07 3.81-.91.65.03 2.47.26 3.64 1.98-.09.06-2.17 1.28-2.15 3.81.03 3.02 2.65 4.03 2.68 4.04-.03.07-.42 1.44-1.38 2.83M13 3.5c.73-.83 1.94-1.46 2.94-1.5.13 1.17-.34 2.35-1.04 3.19-.69.85-1.83 1.51-2.95 1.42-.15-1.15.41-2.35 1.05-3.11z" />
                </svg>
                <span>iPhone 下载</span>
            </button>

            <button id="downloadButtonAndroid" class="download-btn android-btn">
                <svg class="btn-icon" viewBox="0 0 24 24">
                    <path
                        d="M6.18 2L6.18 2C5.53 2 5 2.53 5 3.18L5 3.18C5 3.83 5.53 4.36 6.18 4.36L6.18 4.36C6.83 4.36 7.36 3.83 7.36 3.18L7.36 3.18C7.36 2.53 6.83 2 6.18 2M17.82 2L17.82 2C17.17 2 16.64 2.53 16.64 3.18L16.64 3.18C16.64 3.83 17.17 4.36 17.82 4.36L17.82 4.36C18.47 4.36 19 3.83 19 3.18L19 3.18C19 2.53 18.47 2 17.82 2M7.36 6.73L16.64 6.73L16.64 15.09C16.64 15.74 16.11 16.27 15.45 16.27L14.27 16.27L14.27 20C14.27 20.65 13.74 21.18 13.09 21.18L13.09 21.18C12.44 21.18 11.91 20.65 11.91 20L11.91 16.27L10.09 16.27L10.09 20C10.09 20.65 9.56 21.18 8.91 21.18L8.91 21.18C8.26 21.18 7.73 20.65 7.73 20L7.73 16.27L6.55 16.27C5.89 16.27 5.36 15.74 5.36 15.09L5.36 6.73L7.36 6.73M12 8.18C10.05 8.18 8.45 9.77 8.45 11.73C8.45 13.68 10.05 15.27 12 15.27C13.95 15.27 15.55 13.68 15.55 11.73C15.55 9.77 13.95 8.18 12 8.18M3.18 7.36L3.18 7.36C2.53 7.36 2 7.89 2 8.55L2 14.82C2 15.47 2.53 16 3.18 16L3.18 16C3.83 16 4.36 15.47 4.36 14.82L4.36 8.55C4.36 7.89 3.83 7.36 3.18 7.36M20.82 7.36L20.82 7.36C20.17 7.36 19.64 7.89 19.64 8.55L19.64 14.82C19.64 15.47 20.17 16 20.82 16L20.82 16C21.47 16 22 15.47 22 14.82L22 8.55C22 7.89 21.47 7.36 20.82 7.36Z" />
                </svg>
                <span>Android 下载</span>
            </button>
        </div>

        <!-- 功能特性 -->
        <div class="features">
            <div class="feature-item">
                <div class="feature-icon">
                    <svg viewBox="0 0 24 24">
                        <path
                            d="M12,1L3,5V11C3,16.55 6.84,21.74 12,23C17.16,21.74 21,16.55 21,11V5L12,1M10,17L6,13L7.41,11.59L10,14.17L16.59,7.58L18,9L10,17Z" />
                    </svg>
                </div>
                <div class="feature-text">
                    <h3>实时防护</h3>
                    <p>24小时监控，拦截恶意攻击</p>
                </div>
            </div>

            <div class="feature-item">
                <div class="feature-icon">
                    <svg viewBox="0 0 24 24">
                        <path
                            d="M9,22A1,1 0 0,1 8,21V18H4A2,2 0 0,1 2,16V4C2,2.89 2.9,2 4,2H20A2,2 0 0,1 22,4V16A2,2 0 0,1 20,18H13.9L10.2,21.71C10,21.9 9.75,22 9.5,22H9M10,16V19.08L13.08,16H20V4H4V16H10M8.5,7A0.5,0.5 0 0,1 9,7.5A0.5,0.5 0 0,1 8.5,8A0.5,0.5 0 0,1 8,7.5A0.5,0.5 0 0,1 8.5,7M12.5,7A0.5,0.5 0 0,1 13,7.5A0.5,0.5 0 0,1 12.5,8A0.5,0.5 0 0,1 12,7.5A0.5,0.5 0 0,1 12.5,7M16.5,7A0.5,0.5 0 0,1 17,7.5A0.5,0.5 0 0,1 16.5,8A0.5,0.5 0 0,1 16,7.5A0.5,0.5 0 0,1 16.5,7Z" />
                    </svg>
                </div>
                <div class="feature-text">
                    <h3>威胁情报</h3>
                    <p>全球威胁数据库，智能识别风险</p>
                </div>
            </div>

            <div class="feature-item">
                <div class="feature-icon">
                    <svg viewBox="0 0 24 24">
                        <path
                            d="M12,17A2,2 0 0,0 14,15C14,13.89 13.1,13 12,13A2,2 0 0,0 10,15A2,2 0 0,0 12,17M18,8A2,2 0 0,1 20,10V20A2,2 0 0,1 18,22H6A2,2 0 0,1 4,20V10C4,8.89 4.9,8 6,8H7V6A5,5 0 0,1 12,1A5,5 0 0,1 17,6V8H18M12,3A3,3 0 0,0 9,6V8H15V6A3,3 0 0,0 12,3Z" />
                    </svg>
                </div>
                <div class="feature-text">
                    <h3>隐私保护</h3>
                    <p>加密传输，保护个人信息安全</p>
                </div>
            </div>

            <div class="feature-item">
                <div class="feature-icon">
                    <svg viewBox="0 0 24 24">
                        <path
                            d="M17,7H22V17H17V19A1,1 0 0,0 18,20H20V22H17.5C16.95,22 16,21.55 16,21C16,21.55 15.05,22 14.5,22H12V20H14A1,1 0 0,0 15,19V5A1,1 0 0,0 14,4H12V2H14.5C15.05,2 16,2.45 16,3C16,2.45 16.95,2 17.5,2H20V4H18A1,1 0 0,0 17,5V7M2,7H13V9H4V15H13V17H2V7M20,9H19V15H20V9M9.5,11A0.5,0.5 0 0,1 10,11.5A0.5,0.5 0 0,1 9.5,12A0.5,0.5 0 0,1 9,11.5A0.5,0.5 0 0,1 9.5,11Z" />
                    </svg>
                </div>
                <div class="feature-text">
                    <h3>专业认证</h3>
                    <p>通过国家网络安全等级保护认证</p>
                </div>
            </div>
        </div>

        <!-- 底部信息 -->
        <div class="footer">
            <p>版本：v1.0.0 | 大小：50MB</p>
            <p style="margin-top: 5px;">© 2025 北京东圣天成科技有限公司</p>
        </div>
    </div>

    <!-- 微信提示遮罩 -->
    <div class="wechat-mask" id="wechatMask">
        <div class="mask-content">
            <div class="arrow"></div>
            <div class="mask-text">
                <p>点击右上角 ···</p>
                <p>选择"在浏览器打开"</p>
                <p>即可下载安装</p>
            </div>
        </div>
    </div>

    <script>
        // OpenInstall 初始化
        var data = OpenInstall.parseUrlParams(); // 解析当前网页url中的查询参数

        new OpenInstall({
            appKey: "fey37z", // OpenInstall 分配的唯一 appKey
            onready: function () {
                // 初始化成功回调
                this.schemeWakeup(); // 尝试使用 scheme 打开 App

                var m = this;

                // 为 iOS 下载按钮绑定事件
                var iosButton = document.getElementById("downloadButton");
                if (iosButton) {
                    iosButton.onclick = function () {
                        m.wakeupOrInstall({
                            data: { "platform": "ios", "source": "download_page" },
                            channelCode: "official_website"
                        });
                        return false;
                    };
                }

                // 为 Android 下载按钮绑定事件
                var androidButton = document.getElementById("downloadButtonAndroid");
                if (androidButton) {
                    androidButton.onclick = function () {
                        m.wakeupOrInstall({
                            data: { "platform": "android", "source": "download_page" },
                            channelCode: "official_website"
                        });
                        return false;
                    };
                }
            },
            // 自定义遮罩层样式（当无法正常下载或拉起时显示）
            mask: function () {
                return `
                    <div style="position: fixed; top: 0; left: 0; right: 0; bottom: 0; background: rgba(0, 0, 0, 0.9); z-index: 9999; display: flex; align-items: flex-start; justify-content: flex-end; padding: 20px;">
                        <div style="color: white; text-align: right; margin-top: 60px;">
                            <div style="width: 0; height: 0; border-left: 20px solid transparent; border-right: 20px solid transparent; border-bottom: 30px solid white; margin: 0 auto 20px auto; animation: bounce 1s infinite;"></div>
                            <div style="font-size: 18px; line-height: 1.6;">
                                <p>点击右上角 ···</p>
                                <p>选择"在浏览器打开"</p>
                                <p>即可下载安装</p>
                            </div>
                        </div>
                    </div>
                `;
            }
        }, data);

        // 检测设备类型
        function getDeviceType() {
            const ua = navigator.userAgent;
            if (/android/i.test(ua)) {
                return 'android';
            }
            if (/iPad|iPhone|iPod/.test(ua) && !window.MSStream) {
                return 'ios';
            }
            return 'unknown';
        }

        // 点击遮罩关闭（保留原有功能）
        document.addEventListener('DOMContentLoaded', function () {
            const wechatMask = document.getElementById('wechatMask');
            if (wechatMask) {
                wechatMask.addEventListener('click', function () {
                    this.classList.remove('show');
                });
            }
        });

        // 简化的鼠标跟随效果（仅在桌面端启用）
        function initMouseEffect() {
            if (window.innerWidth > 768) {
                let ticking = false;

                document.addEventListener('mousemove', function (e) {
                    if (!ticking) {
                        requestAnimationFrame(function () {
                            const container = document.querySelector('.container');
                            if (container) {
                                const rect = container.getBoundingClientRect();
                                const centerX = rect.left + rect.width / 2;
                                const centerY = rect.top + rect.height / 2;

                                const deltaX = (e.clientX - centerX) * 0.01;
                                const deltaY = (e.clientY - centerY) * 0.01;

                                container.style.transform = `translate(${deltaX}px, ${deltaY}px)`;
                            }
                            ticking = false;
                        });
                        ticking = true;
                    }
                });
            }
        }

        // 简化按钮点击效果
        function createRipple(event) {
            const button = event.currentTarget;

            // 防抖处理
            if (button.dataset.rippling) return;
            button.dataset.rippling = 'true';

            const rect = button.getBoundingClientRect();
            const size = Math.min(rect.width, rect.height) * 0.8;
            const x = event.clientX - rect.left - size / 2;
            const y = event.clientY - rect.top - size / 2;

            const ripple = document.createElement('div');
            ripple.style.cssText = `
                position: absolute;
                width: ${size}px;
                height: ${size}px;
                left: ${x}px;
                top: ${y}px;
                background: rgba(255, 255, 255, 0.4);
                border-radius: 50%;
                transform: scale(0);
                animation: ripple 0.4s ease-out;
                pointer-events: none;
                z-index: 10;
            `;

            button.appendChild(ripple);

            setTimeout(() => {
                ripple.remove();
                delete button.dataset.rippling;
            }, 400);
        }

        // 页面加载时自动检测设备类型并调整按钮顺序
        window.onload = function () {
            const deviceType = getDeviceType();
            const buttons = document.querySelector('.download-buttons');
            const iosBtn = document.querySelector('.ios-btn');
            const androidBtn = document.querySelector('.android-btn');

            // 根据设备类型调整按钮顺序
            if (deviceType === 'android') {
                buttons.insertBefore(androidBtn, iosBtn);
            } else if (deviceType === 'ios') {
                buttons.insertBefore(iosBtn, androidBtn);
            }

            // 添加按钮事件监听（仅用于视觉效果）
            document.querySelectorAll('.download-btn').forEach(btn => {
                btn.addEventListener('click', createRipple);
            });

            // 启动鼠标效果
            initMouseEffect();
        };
    </script>
</body>

</html>